import {wxRequest} from '@/utils/request'

export const mapDispatchToProps = dispatch => {
  return {
    changeApp: data => {
      wxRequest({
        url:'/lifeHome/projectListPage',
        data:''
      }).then(res=>{
        // console.log(res);
        if(res.data.code==='S000000') {
          return dispatch({ type: 'MY', data })
        }
      })
      }
  }
}